package mysql

import "gorm.io/gorm"

type Sttribute struct {
	gorm.Model
	GoodId     int64  `gorm:"type:int;not null;comment:商品ID" json:"good_id"`
	GoodColour string `gorm:"type:varchar(20);not null;comment:'商品颜色'" json:"good_colour"`
	SetMenu    int64  `gorm:"type:int;not null;comment:'商品套餐'" json:"set_menu"`
}

func (s *Sttribute) Create() error {
	return DB.Debug().Create(&s).Error
}
